package ${baseInfo.packageName};

import ${baseService.packageName}.${baseService.fileName};
import ${tableClass.fullClassName};
<#if (columnEnum)??>import ${columnEnum.packageName}.${columnEnum.fileName};</#if>
import ${mapper.packageName}.${mapper.fileName};
import ${service.packageName}.${service.fileName};
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
<#if (columnEnum)??>import java.util.Collection;
import java.util.List;
</#if>

/**
 * 针对表【${tableClass.tableName}<#if tableClass.remark?has_content>(${tableClass.remark!})</#if>】的数据库操作Service实现
 *
 * @author MyBatisX Generator
 * @see ${service.fileName}
 */
@Getter
@Service
public class ${baseInfo.fileName} implements ${service.fileName} {

    // region MyBatisX Generator
    /**
     * mapper的class对像
     */
    private final ${'Class<?>'} mapperClass = ${mapper.fileName}.class;

    /**
     * 会话工厂类
     */
    @Setter(onMethod_ = @Resource)
    private SqlSessionFactory sessionFactory;

    /**
     * mapper对象
     *
     * @see ${mapper.fileName}
     */
    @Setter(onMethod_ = @Resource)
    private ${mapper.fileName} mapper;
    // endregion MyBatisX Generator

}




